<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CashInfo extends Model
{
    use HasFactory;

    const CASH_TYPE_WECHAT = 'wechat';
    const CASH_TYPE_ALI = 'ali';
    const CASH_TYPE_QQ = 'qq';

    public static $cashTypeMap = [
        self::CASH_TYPE_WECHAT => '微信',
        self::CASH_TYPE_ALI => '支付宝',
        self::CASH_TYPE_QQ => 'QQ',
    ];

    protected $fillable = [
        'user_id', 'cash_type', 'realname', 'account'
    ];
}
